.class public Lcom/estrongs/android/pop/app/OpenRecommActivity;
.super Lcom/estrongs/android/pop/esclasses/ESActivity;
.source "OpenRecommActivity.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/android/pop/app/OpenRecommActivity$h;,
        Lcom/estrongs/android/pop/app/OpenRecommActivity$g;
    }
.end annotation


# instance fields
.field private d:Ljava/lang/String;

.field private e:Landroid/content/Intent;

.field private f:I

.field private g:I

.field private h:I

.field private i:Lcom/estrongs/android/ui/view/MaxWidthLinearLayout;

.field private j:Ljava/lang/String;

.field private k:Lcom/estrongs/android/pop/view/utils/c$a;


# direct methods
.method public constructor <init>()V
    .locals 2

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-object v0, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->d:Ljava/lang/String;

    .line 3
    iput-object v0, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->e:Landroid/content/Intent;

    const/4 v1, 0x0

    .line 4
    iput v1, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->f:I

    .line 5
    iput v1, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->g:I

    .line 6
    iput v1, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->h:I

    .line 7
    iput-object v0, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->j:Ljava/lang/String;

    .line 8
    iput-object v0, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->k:Lcom/estrongs/android/pop/view/utils/c$a;

    return-void
.end method

.method private A()V
    .locals 11

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object v0

    iget v0, v0, Landroid/content/res/Configuration;->orientation:I

    const/4 v1, 0x1

    const/4 v2, 0x0

    if-ne v0, v1, :cond_0

    goto :goto_0

    :cond_0
    const/4 v1, 0x0

    :goto_0
    const v0, 0x7f090892

    .line 2
    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    .line 3
    invoke-virtual {p0}, Landroid/app/Activity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v3

    .line 4
    invoke-interface {v3}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v3

    .line 5
    new-instance v4, Landroid/util/DisplayMetrics;

    invoke-direct {v4}, Landroid/util/DisplayMetrics;-><init>()V

    .line 6
    invoke-virtual {v3, v4}, Landroid/view/Display;->getMetrics(Landroid/util/DisplayMetrics;)V

    .line 7
    iget v4, v4, Landroid/util/DisplayMetrics;->density:F

    .line 8
    invoke-virtual {v3}, Landroid/view/Display;->getHeight()I

    move-result v5

    const/high16 v6, 0x41c80000    # 25.0f

    mul-float v6, v6, v4

    const/high16 v7, 0x3f000000    # 0.5f

    add-float/2addr v6, v7

    float-to-int v6, v6

    sub-int/2addr v5, v6

    if-eqz v1, :cond_1

    .line 9
    invoke-virtual {v3}, Landroid/view/Display;->getWidth()I

    move-result v1

    goto :goto_1

    :cond_1
    invoke-virtual {v3}, Landroid/view/Display;->getHeight()I

    move-result v1

    .line 10
    :goto_1
    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    .line 11
    iget v3, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->g:I

    if-nez v3, :cond_3

    const v3, 0x7f090896

    .line 12
    invoke-virtual {p0, v3}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    .line 13
    invoke-virtual {v3}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v3

    iget v3, v3, Landroid/view/ViewGroup$LayoutParams;->height:I

    const v6, 0x7f090891

    .line 14
    invoke-virtual {p0, v6}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v6

    .line 15
    invoke-virtual {v6}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v6

    iget v6, v6, Landroid/view/ViewGroup$LayoutParams;->height:I

    const/high16 v8, 0x42700000    # 60.0f

    mul-float v8, v8, v4

    add-float/2addr v8, v7

    float-to-int v8, v8

    .line 16
    iget v9, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->f:I

    if-gez v9, :cond_2

    const/4 v9, 0x0

    .line 17
    :cond_2
    iget-object v10, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->i:Lcom/estrongs/android/ui/view/MaxWidthLinearLayout;

    invoke-virtual {v10, v2}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v2

    add-int/2addr v3, v6

    mul-int v8, v8, v9

    add-int/2addr v3, v8

    int-to-float v6, v9

    mul-float v6, v6, v4

    add-float/2addr v6, v7

    float-to-int v6, v6

    add-int/2addr v3, v6

    .line 18
    invoke-virtual {v2}, Landroid/view/View;->getPaddingTop()I

    move-result v6

    add-int/2addr v3, v6

    invoke-virtual {v2}, Landroid/view/View;->getPaddingBottom()I

    move-result v2

    add-int/2addr v3, v2

    iput v3, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->g:I

    const/high16 v2, 0x42c80000    # 100.0f

    mul-float v4, v4, v2

    add-float/2addr v4, v7

    float-to-int v2, v4

    .line 19
    iput v2, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->h:I

    .line 20
    :cond_3
    iget v2, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->g:I

    iget v3, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->h:I

    add-int v4, v2, v3

    if-le v5, v4, :cond_4

    .line 21
    iput v2, v0, Landroid/view/ViewGroup$LayoutParams;->height:I

    goto :goto_2

    :cond_4
    sub-int/2addr v5, v3

    .line 22
    iput v5, v0, Landroid/view/ViewGroup$LayoutParams;->height:I

    .line 23
    :goto_2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->i:Lcom/estrongs/android/ui/view/MaxWidthLinearLayout;

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/view/MaxWidthLinearLayout;->setMaxWidth(I)V

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/pop/app/OpenRecommActivity;Lcom/estrongs/android/pop/view/utils/c$a;)Lcom/estrongs/android/pop/view/utils/c$a;
    .locals 0

    .line 2
    iput-object p1, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->k:Lcom/estrongs/android/pop/view/utils/c$a;

    return-object p1
.end method

.method public static a(Landroid/content/Context;Ljava/lang/String;Landroid/content/Intent;)V
    .locals 2
    .param p0    # Landroid/content/Context;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 4
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/estrongs/android/pop/app/OpenRecommActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v1, "filepath"

    .line 5
    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string p1, "itarget"

    .line 6
    invoke-virtual {v0, p1, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    .line 7
    invoke-virtual {p0, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    return-void
.end method

.method private a(Landroid/content/Intent;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 4
    .param p4    # Ljava/lang/String;
        .annotation build Landroidx/annotation/Nullable;
        .end annotation
    .end param

    .line 8
    invoke-virtual {p1}, Landroid/content/Intent;->getData()Landroid/net/Uri;

    move-result-object v0

    const-string v1, "com.estrongs.android.pop"

    .line 9
    invoke-virtual {v1, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 10
    invoke-static {v0}, Lcom/estrongs/android/pop/app/FileContentProvider;->c(Landroid/net/Uri;)Z

    move-result v1

    if-eqz v1, :cond_2

    .line 11
    invoke-static {v0}, Lcom/estrongs/android/pop/app/FileContentProvider;->a(Landroid/net/Uri;)Ljava/io/File;

    move-result-object v0

    invoke-static {v0}, Landroid/net/Uri;->fromFile(Ljava/io/File;)Landroid/net/Uri;

    move-result-object v0

    iget-object v1, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->e:Landroid/content/Intent;

    invoke-virtual {v1}, Landroid/content/Intent;->getType()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v0, v1}, Landroid/content/Intent;->setDataAndType(Landroid/net/Uri;Ljava/lang/String;)Landroid/content/Intent;

    goto :goto_0

    .line 12
    :cond_0
    invoke-virtual {v0}, Landroid/net/Uri;->getScheme()Ljava/lang/String;

    move-result-object v1

    const-string v2, "content"

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    const/4 v2, 0x3

    if-eqz v1, :cond_1

    .line 13
    invoke-virtual {p0, p2, v0, v2}, Landroid/app/Activity;->grantUriPermission(Ljava/lang/String;Landroid/net/Uri;I)V

    goto :goto_0

    .line 14
    :cond_1
    invoke-virtual {v0}, Landroid/net/Uri;->getScheme()Ljava/lang/String;

    move-result-object v1

    const-string v3, "file"

    invoke-virtual {v3, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    .line 15
    new-instance v1, Ljava/io/File;

    invoke-virtual {v0}, Landroid/net/Uri;->getPath()Ljava/lang/String;

    move-result-object v0

    invoke-direct {v1, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-static {p0, v1}, Lcom/estrongs/android/util/l;->a(Landroid/content/Context;Ljava/io/File;)Landroid/net/Uri;

    move-result-object v0

    .line 16
    invoke-virtual {p1}, Landroid/content/Intent;->getType()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v0, v1}, Landroid/content/Intent;->setDataAndType(Landroid/net/Uri;Ljava/lang/String;)Landroid/content/Intent;

    .line 17
    invoke-virtual {p0, p2, v0, v2}, Landroid/app/Activity;->grantUriPermission(Ljava/lang/String;Landroid/net/Uri;I)V

    .line 18
    :cond_2
    :goto_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->e:Landroid/content/Intent;

    invoke-virtual {v0, p2, p3}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    if-eqz p4, :cond_3

    .line 19
    iget-object p3, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->e:Landroid/content/Intent;

    invoke-virtual {p3, p4}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

    .line 20
    :cond_3
    invoke-static {p2}, Lcom/estrongs/android/pop/view/utils/b;->c(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_4

    .line 21
    iget-object p2, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->e:Landroid/content/Intent;

    const/high16 p3, 0x10000000

    invoke-static {p2, p3}, Lcom/estrongs/android/pop/view/utils/b;->a(Landroid/content/Intent;I)V

    .line 22
    :cond_4
    :try_start_0
    invoke-virtual {p0, p1}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V
    :try_end_0
    .catch Ljava/lang/SecurityException; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/pop/app/OpenRecommActivity;Lcom/estrongs/android/pop/view/utils/c$b;)V
    .locals 0

    .line 3
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/OpenRecommActivity;->a(Lcom/estrongs/android/pop/view/utils/c$b;)V

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/pop/app/OpenRecommActivity;Z)V
    .locals 0

    .line 1
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/OpenRecommActivity;->f(Z)V

    return-void
.end method

.method private a(Lcom/estrongs/android/pop/view/utils/c$b;)V
    .locals 7

    .line 39
    iget-object v4, p1, Lcom/estrongs/android/pop/view/utils/c$b;->k:Ljava/lang/String;

    .line 40
    iget-object v1, p1, Lcom/estrongs/android/pop/view/utils/c$a;->c:Ljava/lang/String;

    if-eqz v1, :cond_0

    const/4 v5, 0x1

    const/4 v6, 0x1

    const-string v3, "utm_source%3Drecommendation%26utm_medium%3Dmobile_app%26utm_campaign%3Desfileexplorer"

    const-string v2, "pname"

    move-object v0, p0

    .line 41
    invoke-static/range {v0 .. v6}, Lcom/estrongs/android/pop/utils/k;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZ)V

    goto :goto_0

    .line 42
    :cond_0
    invoke-static {p0, v4}, Lcom/estrongs/android/pop/utils/k;->b(Landroid/content/Context;Ljava/lang/String;)V

    :goto_0
    return-void
.end method

.method private a(Lcom/estrongs/android/pop/view/utils/c$b;Z)V
    .locals 4

    .line 23
    :try_start_0
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object v0

    const-string v1, "com.microsoft.office.word"

    .line 24
    iget-object v2, p1, Lcom/estrongs/android/pop/view/utils/c$a;->c:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    const-string v2, "recommend_office"

    if-eqz v1, :cond_0

    :try_start_1
    const-string v1, "Recommand_word"

    .line 25
    invoke-virtual {v0, v2, v1}, Lcom/estrongs/android/statistics/b;->c(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    :cond_0
    const-string v1, "com.microsoft.office.excel"

    .line 26
    iget-object v3, p1, Lcom/estrongs/android/pop/view/utils/c$a;->c:Ljava/lang/String;

    invoke-virtual {v1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    const-string v1, "Recommand_excel"

    .line 27
    invoke-virtual {v0, v2, v1}, Lcom/estrongs/android/statistics/b;->c(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    :cond_1
    const-string v1, "com.microsoft.office.powerpoint"

    .line 28
    iget-object v3, p1, Lcom/estrongs/android/pop/view/utils/c$a;->c:Ljava/lang/String;

    invoke-virtual {v1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    const-string v1, "Recommand_powerpoint"

    .line 29
    invoke-virtual {v0, v2, v1}, Lcom/estrongs/android/statistics/b;->c(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 30
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    :cond_2
    :goto_0
    const/4 v0, 0x0

    const/4 v1, 0x1

    if-eqz p2, :cond_3

    const v2, 0x7f11065c

    new-array v1, v1, [Ljava/lang/Object;

    .line 31
    iget-object v3, p1, Lcom/estrongs/android/pop/view/utils/c$a;->b:Ljava/lang/String;

    aput-object v3, v1, v0

    invoke-virtual {p0, v2, v1}, Landroid/app/Activity;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    goto :goto_1

    :cond_3
    const v2, 0x7f11065b

    new-array v1, v1, [Ljava/lang/Object;

    .line 32
    iget-object v3, p1, Lcom/estrongs/android/pop/view/utils/c$a;->b:Ljava/lang/String;

    aput-object v3, v1, v0

    invoke-virtual {p0, v2, v1}, Landroid/app/Activity;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    .line 33
    :goto_1
    new-instance v1, Lcom/estrongs/android/ui/dialog/q$n;

    invoke-direct {v1, p0}, Lcom/estrongs/android/ui/dialog/q$n;-><init>(Landroid/content/Context;)V

    const v2, 0x7f11065f

    .line 34
    invoke-virtual {v1, v2}, Lcom/estrongs/android/ui/dialog/q$n;->b(I)Lcom/estrongs/android/ui/dialog/q$n;

    .line 35
    invoke-virtual {v1, v0}, Lcom/estrongs/android/ui/dialog/q$n;->a(Ljava/lang/CharSequence;)Lcom/estrongs/android/ui/dialog/q$n;

    const v0, 0x7f1102a2

    new-instance v2, Lcom/estrongs/android/pop/app/OpenRecommActivity$d;

    invoke-direct {v2, p0, p1}, Lcom/estrongs/android/pop/app/OpenRecommActivity$d;-><init>(Lcom/estrongs/android/pop/app/OpenRecommActivity;Lcom/estrongs/android/pop/view/utils/c$b;)V

    invoke-virtual {v1, v0, v2}, Lcom/estrongs/android/ui/dialog/q$n;->b(ILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    const p1, 0x7f11029d

    .line 36
    new-instance v0, Lcom/estrongs/android/pop/app/OpenRecommActivity$e;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/OpenRecommActivity$e;-><init>(Lcom/estrongs/android/pop/app/OpenRecommActivity;)V

    invoke-virtual {v1, p1, v0}, Lcom/estrongs/android/ui/dialog/q$n;->a(ILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    .line 37
    invoke-virtual {v1}, Lcom/estrongs/android/ui/dialog/q$n;->c()Lcom/estrongs/android/ui/dialog/q;

    if-eqz p2, :cond_4

    .line 38
    new-instance p1, Lcom/estrongs/android/pop/app/OpenRecommActivity$f;

    invoke-direct {p1, p0}, Lcom/estrongs/android/pop/app/OpenRecommActivity$f;-><init>(Lcom/estrongs/android/pop/app/OpenRecommActivity;)V

    invoke-virtual {v1, p1}, Lcom/estrongs/android/ui/dialog/q$n;->a(Landroid/content/DialogInterface$OnDismissListener;)Lcom/estrongs/android/ui/dialog/q$n;

    :cond_4
    return-void
.end method

.method private a(Lcom/estrongs/android/pop/view/utils/e$b;Ljava/lang/String;)V
    .locals 4

    .line 57
    :try_start_0
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    .line 58
    iget-object v1, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->d:Ljava/lang/String;

    invoke-static {v1}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/estrongs/android/util/h0;->x(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    const-string v2, "extName"

    .line 59
    sget-object v3, Ljava/util/Locale;->ENGLISH:Ljava/util/Locale;

    invoke-virtual {v1, v3}, Ljava/lang/String;->toLowerCase(Ljava/util/Locale;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v2, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "package"

    .line 60
    iget-object p1, p1, Lcom/estrongs/android/pop/view/utils/e$b;->b:Ljava/lang/String;

    invoke-virtual {v0, v1, p1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 61
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object p1

    invoke-virtual {p1, p2, v0}, Lcom/estrongs/android/statistics/b;->b(Ljava/lang/String;Lorg/json/JSONObject;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    return-void
.end method

.method private a([Lcom/estrongs/android/pop/view/utils/c$a;)V
    .locals 8

    .line 43
    iget-object v0, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->d:Ljava/lang/String;

    invoke-static {v0}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/android/util/h0;->x(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 44
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_0

    return-void

    .line 45
    :cond_0
    invoke-static {}, Lcom/estrongs/android/pop/view/utils/a;->c()Lcom/estrongs/android/pop/view/utils/a;

    move-result-object v1

    sget-object v2, Ljava/util/Locale;->ENGLISH:Ljava/util/Locale;

    invoke-virtual {v0, v2}, Ljava/lang/String;->toLowerCase(Ljava/util/Locale;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/estrongs/android/pop/view/utils/a;->a(Ljava/lang/String;)Ljava/util/Map;

    move-result-object v0

    if-eqz v0, :cond_4

    .line 46
    invoke-interface {v0}, Ljava/util/Map;->isEmpty()Z

    move-result v1

    if-eqz v1, :cond_1

    goto :goto_2

    .line 47
    :cond_1
    array-length v1, p1

    const/4 v2, 0x0

    const/4 v3, 0x0

    :goto_0
    if-ge v3, v1, :cond_4

    aget-object v4, p1, v3

    .line 48
    iget-object v5, v4, Lcom/estrongs/android/pop/view/utils/c$a;->d:Ljava/lang/String;

    .line 49
    iget-object v6, v4, Lcom/estrongs/android/pop/view/utils/c$a;->c:Ljava/lang/String;

    .line 50
    invoke-interface {v0, v5}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result v7

    if-eqz v7, :cond_2

    .line 51
    invoke-interface {v0, v5}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Lcom/estrongs/android/pop/view/utils/a$b;

    .line 52
    iget-object v7, v5, Lcom/estrongs/android/pop/view/utils/a$b;->a:Ljava/lang/String;

    invoke-virtual {v7, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_3

    .line 53
    iget v6, v5, Lcom/estrongs/android/pop/view/utils/a$b;->d:I

    iput v6, v4, Lcom/estrongs/android/pop/view/utils/c$a;->f:I

    .line 54
    iget-wide v5, v5, Lcom/estrongs/android/pop/view/utils/a$b;->e:J

    iput-wide v5, v4, Lcom/estrongs/android/pop/view/utils/c$a;->g:J

    goto :goto_1

    .line 55
    :cond_2
    iput v2, v4, Lcom/estrongs/android/pop/view/utils/c$a;->f:I

    const-wide/16 v5, 0x0

    .line 56
    iput-wide v5, v4, Lcom/estrongs/android/pop/view/utils/c$a;->g:J

    :cond_3
    :goto_1
    add-int/lit8 v3, v3, 0x1

    goto :goto_0

    :cond_4
    :goto_2
    return-void
.end method

.method private b([Lcom/estrongs/android/pop/view/utils/c$a;)[Lcom/estrongs/android/pop/view/utils/c$a;
    .locals 9

    .line 1
    invoke-static {}, Les/b00;->q()Les/b00;

    move-result-object v0

    invoke-virtual {v0}, Les/b00;->i()Z

    move-result v0

    if-eqz v0, :cond_0

    return-object p1

    .line 2
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->d:Ljava/lang/String;

    invoke-static {v0}, Lcom/estrongs/android/util/h0;->x(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 3
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_1

    return-object p1

    .line 4
    :cond_1
    invoke-static {}, Lcom/estrongs/android/pop/view/utils/d;->h()Lcom/estrongs/android/pop/view/utils/d;

    move-result-object v1

    if-nez v1, :cond_2

    return-object p1

    .line 5
    :cond_2
    invoke-virtual {v1}, Lcom/estrongs/android/pop/view/utils/d;->g()Lcom/estrongs/android/pop/view/utils/e;

    move-result-object v1

    if-eqz v1, :cond_8

    .line 6
    iget-object v2, v1, Lcom/estrongs/android/pop/view/utils/e;->c:Ljava/util/List;

    if-eqz v2, :cond_8

    .line 7
    sget-object v2, Ljava/util/Locale;->ENGLISH:Ljava/util/Locale;

    invoke-virtual {v0, v2}, Ljava/lang/String;->toLowerCase(Ljava/util/Locale;)Ljava/lang/String;

    move-result-object v0

    const/4 v2, 0x0

    .line 8
    iget-object v1, v1, Lcom/estrongs/android/pop/view/utils/e;->c:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_3
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    const/4 v4, 0x0

    if-eqz v3, :cond_5

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/estrongs/android/pop/view/utils/e$a;

    .line 9
    invoke-virtual {v3}, Lcom/estrongs/android/pop/view/utils/e$a;->a()Z

    move-result v5

    if-eqz v5, :cond_3

    .line 10
    iget-object v5, v3, Lcom/estrongs/android/pop/view/utils/e$a;->b:Ljava/lang/String;

    invoke-static {v5}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v5

    if-nez v5, :cond_3

    iget-object v5, v3, Lcom/estrongs/android/pop/view/utils/e$a;->b:Ljava/lang/String;

    sget-object v6, Ljava/util/Locale;->ENGLISH:Ljava/util/Locale;

    .line 11
    invoke-virtual {v5, v6}, Ljava/lang/String;->toLowerCase(Ljava/util/Locale;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v5, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v5

    if-eqz v5, :cond_3

    .line 12
    iget-object v3, v3, Lcom/estrongs/android/pop/view/utils/e$a;->c:Ljava/util/List;

    if-eqz v3, :cond_3

    .line 13
    invoke-interface {v3}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :cond_4
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v5

    if-eqz v5, :cond_3

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Lcom/estrongs/android/pop/view/utils/e$b;

    .line 14
    iget-object v6, v5, Lcom/estrongs/android/pop/view/utils/e$b;->b:Ljava/lang/String;

    .line 15
    iget-object v7, v5, Lcom/estrongs/android/pop/view/utils/e$b;->f:Ljava/lang/String;

    .line 16
    invoke-static {v6}, Lcom/estrongs/android/pop/utils/k;->b(Ljava/lang/String;)Z

    move-result v6

    if-nez v6, :cond_4

    .line 17
    invoke-static {}, Lcom/estrongs/android/pop/o;->A0()Lcom/estrongs/android/pop/o;

    move-result-object v6

    invoke-virtual {v6, v7, v4}, Lcom/estrongs/android/pop/o;->a(Ljava/lang/String;I)I

    move-result v6

    const/4 v8, 0x4

    if-ge v6, v8, :cond_4

    .line 18
    new-instance v2, Lcom/estrongs/android/pop/view/utils/c$a;

    invoke-direct {v2}, Lcom/estrongs/android/pop/view/utils/c$a;-><init>()V

    .line 19
    iput-object v5, v2, Lcom/estrongs/android/pop/view/utils/c$a;->i:Lcom/estrongs/android/pop/view/utils/e$b;

    .line 20
    invoke-static {}, Lcom/estrongs/android/pop/o;->A0()Lcom/estrongs/android/pop/o;

    move-result-object v0

    add-int/lit8 v6, v6, 0x1

    invoke-virtual {v0, v7, v6}, Lcom/estrongs/android/pop/o;->b(Ljava/lang/String;I)V

    const-string v0, "file_open_recommed_show"

    .line 21
    invoke-direct {p0, v5, v0}, Lcom/estrongs/android/pop/app/OpenRecommActivity;->a(Lcom/estrongs/android/pop/view/utils/e$b;Ljava/lang/String;)V

    :cond_5
    if-eqz v2, :cond_8

    .line 22
    array-length v0, p1

    add-int/lit8 v0, v0, 0x1

    new-array v1, v0, [Lcom/estrongs/android/pop/view/utils/c$a;

    :goto_0
    if-ge v4, v0, :cond_7

    if-nez v4, :cond_6

    .line 23
    aput-object v2, v1, v4

    goto :goto_1

    :cond_6
    add-int/lit8 v3, v4, -0x1

    .line 24
    aget-object v3, p1, v3

    aput-object v3, v1, v4

    :goto_1
    add-int/lit8 v4, v4, 0x1

    goto :goto_0

    :cond_7
    return-object v1

    :cond_8
    return-object p1
.end method

.method private c([Lcom/estrongs/android/pop/view/utils/c$a;)V
    .locals 7

    .line 1
    array-length v0, p1

    const/4 v1, 0x0

    const/4 v2, 0x0

    const/4 v3, 0x0

    :goto_0
    const/4 v4, 0x1

    if-ge v2, v0, :cond_2

    .line 2
    aget-object v5, p1, v2

    iget-object v5, v5, Lcom/estrongs/android/pop/view/utils/c$a;->i:Lcom/estrongs/android/pop/view/utils/e$b;

    if-eqz v5, :cond_0

    .line 3
    aget-object v5, p1, v2

    iget-object v5, v5, Lcom/estrongs/android/pop/view/utils/c$a;->i:Lcom/estrongs/android/pop/view/utils/e$b;

    iget-object v5, v5, Lcom/estrongs/android/pop/view/utils/e$b;->b:Ljava/lang/String;

    iget-object v6, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->j:Ljava/lang/String;

    invoke-virtual {v5, v6}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v5

    .line 4
    aget-object v6, p1, v2

    iget-object v6, v6, Lcom/estrongs/android/pop/view/utils/c$a;->i:Lcom/estrongs/android/pop/view/utils/e$b;

    iput-boolean v5, v6, Lcom/estrongs/android/pop/view/utils/e$b;->g:Z

    if-eqz v5, :cond_1

    .line 5
    aget-object v3, p1, v2

    iput-object v3, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->k:Lcom/estrongs/android/pop/view/utils/c$a;

    goto :goto_1

    .line 6
    :cond_0
    aget-object v5, p1, v2

    iget-object v5, v5, Lcom/estrongs/android/pop/view/utils/c$a;->c:Ljava/lang/String;

    iget-object v6, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->j:Ljava/lang/String;

    invoke-virtual {v5, v6}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v5

    .line 7
    aget-object v6, p1, v2

    invoke-virtual {v6, v5}, Lcom/estrongs/android/pop/view/utils/c$a;->a(Z)V

    if-eqz v5, :cond_1

    .line 8
    aget-object v3, p1, v2

    iput-object v3, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->k:Lcom/estrongs/android/pop/view/utils/c$a;

    :goto_1
    const/4 v3, 0x1

    :cond_1
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_2
    if-nez v3, :cond_4

    .line 9
    aget-object v0, p1, v1

    iget-object v0, v0, Lcom/estrongs/android/pop/view/utils/c$a;->i:Lcom/estrongs/android/pop/view/utils/e$b;

    if-eqz v0, :cond_3

    .line 10
    aget-object v0, p1, v1

    iget-object v0, v0, Lcom/estrongs/android/pop/view/utils/c$a;->i:Lcom/estrongs/android/pop/view/utils/e$b;

    iput-boolean v4, v0, Lcom/estrongs/android/pop/view/utils/e$b;->g:Z

    goto :goto_2

    .line 11
    :cond_3
    aget-object v0, p1, v1

    invoke-virtual {v0, v4}, Lcom/estrongs/android/pop/view/utils/c$a;->a(Z)V

    .line 12
    :goto_2
    aget-object p1, p1, v1

    iput-object p1, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->k:Lcom/estrongs/android/pop/view/utils/c$a;

    :cond_4
    return-void
.end method

.method private f(Z)V
    .locals 9

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->k:Lcom/estrongs/android/pop/view/utils/c$a;

    .line 2
    iget-object v1, v0, Lcom/estrongs/android/pop/view/utils/c$a;->i:Lcom/estrongs/android/pop/view/utils/e$b;

    const-string v2, "app"

    if-eqz v1, :cond_0

    .line 3
    iget-object p1, v1, Lcom/estrongs/android/pop/view/utils/e$b;->a:Ljava/lang/String;

    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p1

    if-nez p1, :cond_c

    iget-object p1, v1, Lcom/estrongs/android/pop/view/utils/e$b;->a:Ljava/lang/String;

    invoke-virtual {p1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_c

    .line 4
    iget-object p1, v1, Lcom/estrongs/android/pop/view/utils/e$b;->d:Ljava/lang/String;

    invoke-static {p0, p1}, Lcom/estrongs/android/pop/utils/k;->a(Landroid/content/Context;Ljava/lang/String;)V

    const-string p1, "file_open_recommed_click"

    .line 5
    invoke-direct {p0, v1, p1}, Lcom/estrongs/android/pop/app/OpenRecommActivity;->a(Lcom/estrongs/android/pop/view/utils/e$b;Ljava/lang/String;)V

    goto/16 :goto_4

    .line 6
    :cond_0
    instance-of v1, v0, Lcom/estrongs/android/pop/view/utils/c$b;

    if-eqz v1, :cond_1

    .line 7
    check-cast v0, Lcom/estrongs/android/pop/view/utils/c$b;

    const/4 p1, 0x0

    invoke-direct {p0, v0, p1}, Lcom/estrongs/android/pop/app/OpenRecommActivity;->a(Lcom/estrongs/android/pop/view/utils/c$b;Z)V

    return-void

    .line 8
    :cond_1
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v1

    .line 9
    iget-object v3, v0, Lcom/estrongs/android/pop/view/utils/c$a;->d:Ljava/lang/String;

    const-string v4, ".app.videoeditor.VideoEditProxyActivity"

    invoke-virtual {v3, v4}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_2

    .line 10
    invoke-virtual {v1}, Lcom/estrongs/android/pop/l;->T0()Z

    move-result v3

    if-nez v3, :cond_3

    .line 11
    invoke-virtual {v1}, Lcom/estrongs/android/pop/l;->z1()V

    goto :goto_0

    .line 12
    :cond_2
    iget-object v3, v0, Lcom/estrongs/android/pop/view/utils/c$a;->d:Ljava/lang/String;

    const-string v4, ".app.PopVideoPlayer"

    invoke-virtual {v3, v4}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_3

    .line 13
    invoke-virtual {v1}, Lcom/estrongs/android/pop/l;->U0()Z

    move-result v3

    if-nez v3, :cond_3

    .line 14
    invoke-virtual {v1}, Lcom/estrongs/android/pop/l;->A1()V

    .line 15
    :cond_3
    :goto_0
    :try_start_0
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object v1

    .line 16
    const-class v3, Lcom/estrongs/android/pop/app/PopChromecastPlayer;

    invoke-virtual {v3}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v3

    iget-object v4, v0, Lcom/estrongs/android/pop/view/utils/c$a;->d:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_4

    const-string v3, "function"

    const-string v4, "select_chromecast_click"

    .line 17
    invoke-virtual {v1, v3, v4}, Lcom/estrongs/android/statistics/b;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 18
    :cond_4
    iget-object v3, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->d:Ljava/lang/String;

    invoke-static {v3}, Lcom/estrongs/android/util/n0;->b(Ljava/lang/String;)I

    move-result v3

    .line 19
    invoke-static {v3}, Lcom/estrongs/android/util/n0;->F(I)Z

    move-result v4
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    const-string v5, "office_file_open"

    const-string v6, "type"

    if-nez v4, :cond_7

    const v4, 0x5003d

    if-ne v3, v4, :cond_5

    goto :goto_1

    .line 20
    :cond_5
    :try_start_1
    invoke-static {v3}, Lcom/estrongs/android/util/n0;->m(I)Z

    move-result v4

    if-eqz v4, :cond_6

    .line 21
    new-instance v3, Lorg/json/JSONObject;

    invoke-direct {v3}, Lorg/json/JSONObject;-><init>()V

    const-string v4, "excel"

    .line 22
    invoke-virtual {v3, v6, v4}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 23
    iget-object v4, v0, Lcom/estrongs/android/pop/view/utils/c$a;->c:Ljava/lang/String;

    invoke-virtual {v3, v2, v4}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 24
    invoke-virtual {v1, v5, v3}, Lcom/estrongs/android/statistics/b;->b(Ljava/lang/String;Lorg/json/JSONObject;)V

    goto :goto_2

    .line 25
    :cond_6
    invoke-static {v3}, Lcom/estrongs/android/util/n0;->A(I)Z

    move-result v3

    if-eqz v3, :cond_8

    .line 26
    new-instance v3, Lorg/json/JSONObject;

    invoke-direct {v3}, Lorg/json/JSONObject;-><init>()V

    const-string v4, "ppt"

    .line 27
    invoke-virtual {v3, v6, v4}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 28
    iget-object v4, v0, Lcom/estrongs/android/pop/view/utils/c$a;->c:Ljava/lang/String;

    invoke-virtual {v3, v2, v4}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 29
    invoke-virtual {v1, v5, v3}, Lcom/estrongs/android/statistics/b;->b(Ljava/lang/String;Lorg/json/JSONObject;)V

    goto :goto_2

    .line 30
    :cond_7
    :goto_1
    new-instance v3, Lorg/json/JSONObject;

    invoke-direct {v3}, Lorg/json/JSONObject;-><init>()V

    const-string v4, "word"

    .line 31
    invoke-virtual {v3, v6, v4}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 32
    iget-object v4, v0, Lcom/estrongs/android/pop/view/utils/c$a;->c:Ljava/lang/String;

    invoke-virtual {v3, v2, v4}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 33
    invoke-virtual {v1, v5, v3}, Lcom/estrongs/android/statistics/b;->b(Ljava/lang/String;Lorg/json/JSONObject;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_2

    :catch_0
    nop

    .line 34
    :cond_8
    :goto_2
    iget-object v1, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->d:Ljava/lang/String;

    invoke-static {v1}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/estrongs/android/util/h0;->x(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 35
    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_a

    if-eqz p1, :cond_9

    .line 36
    new-instance p1, Lcom/estrongs/android/pop/view/utils/c$c;

    iget-object v1, v0, Lcom/estrongs/android/pop/view/utils/c$a;->c:Ljava/lang/String;

    iget-object v3, v0, Lcom/estrongs/android/pop/view/utils/c$a;->d:Ljava/lang/String;

    iget-object v4, v0, Lcom/estrongs/android/pop/view/utils/c$a;->e:Ljava/lang/String;

    invoke-direct {p1, v1, v3, v4}, Lcom/estrongs/android/pop/view/utils/c$c;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    invoke-static {p0, v2, p1}, Lcom/estrongs/android/pop/view/utils/c;->a(Landroid/app/Activity;Ljava/lang/String;Lcom/estrongs/android/pop/view/utils/c$c;)V

    .line 37
    :cond_9
    invoke-static {}, Lcom/estrongs/android/pop/view/utils/a;->c()Lcom/estrongs/android/pop/view/utils/a;

    move-result-object p1

    iget-object v1, v0, Lcom/estrongs/android/pop/view/utils/c$a;->c:Ljava/lang/String;

    iget-object v3, v0, Lcom/estrongs/android/pop/view/utils/c$a;->d:Ljava/lang/String;

    sget-object v4, Ljava/util/Locale;->ENGLISH:Ljava/util/Locale;

    invoke-virtual {v2, v4}, Ljava/lang/String;->toLowerCase(Ljava/util/Locale;)Ljava/lang/String;

    move-result-object v4

    iget v5, v0, Lcom/estrongs/android/pop/view/utils/c$a;->f:I

    add-int/lit8 v5, v5, 0x1

    invoke-virtual {p1, v1, v3, v4, v5}, Lcom/estrongs/android/pop/view/utils/a;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V

    .line 38
    :cond_a
    iget-object p1, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->d:Ljava/lang/String;

    invoke-static {p1}, Lcom/estrongs/android/util/h0;->y1(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_b

    iget-object p1, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->d:Ljava/lang/String;

    invoke-static {p1}, Lcom/estrongs/fs/impl/local/f;->e(Ljava/lang/String;)J

    move-result-wide v3

    goto :goto_3

    :cond_b
    const-wide/16 v3, -0x1

    :goto_3
    move-wide v6, v3

    .line 39
    iget-object v3, v0, Lcom/estrongs/android/pop/view/utils/c$a;->c:Ljava/lang/String;

    iget-object v4, v0, Lcom/estrongs/android/pop/view/utils/c$a;->d:Ljava/lang/String;

    const/4 v5, 0x0

    const-string v8, "-"

    invoke-static/range {v2 .. v8}, Lcom/estrongs/android/pop/view/utils/b;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZJLjava/lang/String;)V

    .line 40
    iget-object p1, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->e:Landroid/content/Intent;

    iget-object v1, v0, Lcom/estrongs/android/pop/view/utils/c$a;->c:Ljava/lang/String;

    iget-object v2, v0, Lcom/estrongs/android/pop/view/utils/c$a;->d:Ljava/lang/String;

    iget-object v0, v0, Lcom/estrongs/android/pop/view/utils/c$a;->e:Ljava/lang/String;

    invoke-direct {p0, p1, v1, v2, v0}, Lcom/estrongs/android/pop/app/OpenRecommActivity;->a(Landroid/content/Intent;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 41
    :cond_c
    :goto_4
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/OpenRecommActivity;->finish()V

    return-void
.end method


# virtual methods
.method public finish()V
    .locals 1

    .line 1
    invoke-super {p0}, Landroid/app/Activity;->finish()V

    const/4 v0, 0x0

    .line 2
    invoke-virtual {p0, v0, v0}, Landroid/app/Activity;->overridePendingTransition(II)V

    return-void
.end method

.method public onConfigurationChanged(Landroid/content/res/Configuration;)V
    .locals 0

    .line 1
    invoke-super {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onConfigurationChanged(Landroid/content/res/Configuration;)V

    .line 2
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/OpenRecommActivity;->A()V

    return-void
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 6

    .line 1
    invoke-super {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onCreate(Landroid/os/Bundle;)V

    .line 2
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object p1

    .line 3
    invoke-virtual {p1}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object p1

    if-nez p1, :cond_0

    .line 4
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/OpenRecommActivity;->finish()V

    return-void

    :cond_0
    const-string v0, "from"

    const-string v1, "unset"

    .line 5
    invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const-string v1, "launcher_shortcut"

    .line 6
    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    const-string v3, "itarget"

    const/4 v4, 0x1

    if-eqz v2, :cond_1

    .line 7
    invoke-virtual {p1, v3}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 8
    :try_start_0
    invoke-static {v2, v4}, Landroid/content/Intent;->parseUri(Ljava/lang/String;I)Landroid/content/Intent;

    move-result-object v2

    iput-object v2, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->e:Landroid/content/Intent;
    :try_end_0
    .catch Ljava/net/URISyntaxException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    nop

    goto :goto_0

    .line 9
    :cond_1
    invoke-virtual {p1, v3}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v2

    check-cast v2, Landroid/content/Intent;

    iput-object v2, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->e:Landroid/content/Intent;

    .line 10
    :goto_0
    iget-object v2, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->e:Landroid/content/Intent;

    if-nez v2, :cond_2

    .line 11
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/OpenRecommActivity;->finish()V

    return-void

    .line 12
    :cond_2
    invoke-static {p0, v2}, Lcom/estrongs/android/pop/view/utils/c;->a(Landroid/content/Context;Landroid/content/Intent;)[Lcom/estrongs/android/pop/view/utils/c$a;

    move-result-object v2

    if-eqz v2, :cond_b

    .line 13
    array-length v3, v2

    if-nez v3, :cond_3

    goto/16 :goto_4

    :cond_3
    const-string v3, "filepath"

    .line 14
    invoke-virtual {p1, v3}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->d:Ljava/lang/String;

    const-string v3, "preferredPackage"

    .line 15
    invoke-virtual {p1, v3}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->j:Ljava/lang/String;

    .line 16
    array-length p1, v2

    const/4 v3, 0x0

    if-ne p1, v4, :cond_4

    .line 17
    aget-object p1, v2, v3

    .line 18
    iget-object v0, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->e:Landroid/content/Intent;

    iget-object v1, p1, Lcom/estrongs/android/pop/view/utils/c$a;->c:Ljava/lang/String;

    iget-object v2, p1, Lcom/estrongs/android/pop/view/utils/c$a;->d:Ljava/lang/String;

    iget-object p1, p1, Lcom/estrongs/android/pop/view/utils/c$a;->e:Ljava/lang/String;

    invoke-direct {p0, v0, v1, v2, p1}, Lcom/estrongs/android/pop/app/OpenRecommActivity;->a(Landroid/content/Intent;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 19
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/OpenRecommActivity;->finish()V

    return-void

    .line 20
    :cond_4
    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    const/4 v0, 0x0

    if-eqz p1, :cond_6

    .line 21
    iget-object p1, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->d:Ljava/lang/String;

    invoke-static {p1}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Lcom/estrongs/android/util/h0;->x(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 22
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_5

    .line 23
    invoke-static {p0, p1}, Lcom/estrongs/android/pop/view/utils/c;->a(Landroid/content/Context;Ljava/lang/String;)Lcom/estrongs/android/pop/view/utils/c$c;

    move-result-object p1

    goto :goto_1

    :cond_5
    move-object p1, v0

    :goto_1
    if-eqz p1, :cond_6

    .line 24
    iget-object v1, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->e:Landroid/content/Intent;

    iget-object v2, p1, Lcom/estrongs/android/pop/view/utils/c$c;->a:Ljava/lang/String;

    iget-object p1, p1, Lcom/estrongs/android/pop/view/utils/c$c;->b:Ljava/lang/String;

    invoke-direct {p0, v1, v2, p1, v0}, Lcom/estrongs/android/pop/app/OpenRecommActivity;->a(Landroid/content/Intent;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 25
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/OpenRecommActivity;->finish()V

    return-void

    .line 26
    :cond_6
    invoke-virtual {p0, v4}, Landroidx/appcompat/app/AppCompatActivity;->supportRequestWindowFeature(I)Z

    .line 27
    invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object p1

    const v1, 0x7f08012a

    .line 28
    invoke-virtual {p1, v1}, Landroid/view/Window;->setBackgroundDrawableResource(I)V

    .line 29
    invoke-static {p0}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object p1

    const v1, 0x7f0c02bb

    invoke-virtual {p1, v1, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p1

    check-cast p1, Lcom/estrongs/android/ui/view/MaxWidthLinearLayout;

    iput-object p1, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->i:Lcom/estrongs/android/ui/view/MaxWidthLinearLayout;

    .line 30
    invoke-virtual {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    invoke-virtual {p1}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object p1

    .line 31
    invoke-static {p0}, Lcom/estrongs/android/pop/utils/t;->i(Landroid/content/Context;)Z

    move-result v1

    .line 32
    invoke-virtual {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v5

    invoke-virtual {v5}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object v5

    iget v5, v5, Landroid/content/res/Configuration;->orientation:I

    if-ne v5, v4, :cond_7

    goto :goto_2

    :cond_7
    const/4 v4, 0x0

    :goto_2
    if-nez v1, :cond_8

    if-nez v4, :cond_8

    .line 33
    iget-object p1, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->i:Lcom/estrongs/android/ui/view/MaxWidthLinearLayout;

    invoke-virtual {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v1

    iget v1, v1, Landroid/util/DisplayMetrics;->heightPixels:I

    invoke-virtual {p1, v1}, Lcom/estrongs/android/ui/view/MaxWidthLinearLayout;->setMaxWidth(I)V

    goto :goto_3

    :cond_8
    if-eqz v1, :cond_9

    if-nez v4, :cond_9

    .line 34
    iget-object p1, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->i:Lcom/estrongs/android/ui/view/MaxWidthLinearLayout;

    invoke-virtual {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v1

    iget v1, v1, Landroid/util/DisplayMetrics;->heightPixels:I

    invoke-virtual {p1, v1}, Lcom/estrongs/android/ui/view/MaxWidthLinearLayout;->setMaxWidth(I)V

    goto :goto_3

    :cond_9
    if-eqz v1, :cond_a

    if-eqz v4, :cond_a

    .line 35
    iget-object p1, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->i:Lcom/estrongs/android/ui/view/MaxWidthLinearLayout;

    invoke-virtual {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v1

    iget v1, v1, Landroid/util/DisplayMetrics;->widthPixels:I

    invoke-virtual {p1, v1}, Lcom/estrongs/android/ui/view/MaxWidthLinearLayout;->setMaxWidth(I)V

    goto :goto_3

    .line 36
    :cond_a
    iget-object v1, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->i:Lcom/estrongs/android/ui/view/MaxWidthLinearLayout;

    iget p1, p1, Landroid/util/DisplayMetrics;->widthPixels:I

    invoke-virtual {v1, p1}, Lcom/estrongs/android/ui/view/MaxWidthLinearLayout;->setMaxWidth(I)V

    .line 37
    :goto_3
    iget-object p1, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->i:Lcom/estrongs/android/ui/view/MaxWidthLinearLayout;

    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->setContentView(Landroid/view/View;)V

    const p1, 0x7f090894

    .line 38
    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ListView;

    const v1, 0x7f09088f

    .line 39
    invoke-virtual {p0, v1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    new-instance v3, Lcom/estrongs/android/pop/app/OpenRecommActivity$a;

    invoke-direct {v3, p0}, Lcom/estrongs/android/pop/app/OpenRecommActivity$a;-><init>(Lcom/estrongs/android/pop/app/OpenRecommActivity;)V

    invoke-virtual {v1, v3}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v1, 0x7f090893

    .line 40
    invoke-virtual {p0, v1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    new-instance v3, Lcom/estrongs/android/pop/app/OpenRecommActivity$b;

    invoke-direct {v3, p0}, Lcom/estrongs/android/pop/app/OpenRecommActivity$b;-><init>(Lcom/estrongs/android/pop/app/OpenRecommActivity;)V

    invoke-virtual {v1, v3}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 41
    invoke-direct {p0, v2}, Lcom/estrongs/android/pop/app/OpenRecommActivity;->a([Lcom/estrongs/android/pop/view/utils/c$a;)V

    .line 42
    new-instance v1, Lcom/estrongs/android/pop/app/OpenRecommActivity$h;

    invoke-direct {v1, v0}, Lcom/estrongs/android/pop/app/OpenRecommActivity$h;-><init>(Lcom/estrongs/android/pop/app/OpenRecommActivity$a;)V

    invoke-static {v2, v1}, Ljava/util/Arrays;->sort([Ljava/lang/Object;Ljava/util/Comparator;)V

    .line 43
    invoke-direct {p0, v2}, Lcom/estrongs/android/pop/app/OpenRecommActivity;->b([Lcom/estrongs/android/pop/view/utils/c$a;)[Lcom/estrongs/android/pop/view/utils/c$a;

    move-result-object v0

    .line 44
    invoke-direct {p0, v0}, Lcom/estrongs/android/pop/app/OpenRecommActivity;->c([Lcom/estrongs/android/pop/view/utils/c$a;)V

    .line 45
    array-length v1, v0

    iput v1, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity;->f:I

    .line 46
    new-instance v1, Lcom/estrongs/android/pop/app/OpenRecommActivity$g;

    const v2, 0x7f0c02bc

    invoke-direct {v1, p0, p0, v2, v0}, Lcom/estrongs/android/pop/app/OpenRecommActivity$g;-><init>(Lcom/estrongs/android/pop/app/OpenRecommActivity;Landroid/content/Context;I[Lcom/estrongs/android/pop/view/utils/c$a;)V

    .line 47
    invoke-virtual {p1, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    const v0, 0x7f090895

    .line 48
    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    const v2, 0x7f11006a

    .line 49
    invoke-virtual {p0, v2}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 50
    new-instance v0, Lcom/estrongs/android/pop/app/OpenRecommActivity$c;

    invoke-direct {v0, p0, v1}, Lcom/estrongs/android/pop/app/OpenRecommActivity$c;-><init>(Lcom/estrongs/android/pop/app/OpenRecommActivity;Lcom/estrongs/android/pop/app/OpenRecommActivity$g;)V

    invoke-virtual {p1, v0}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 51
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/OpenRecommActivity;->A()V

    return-void

    :cond_b
    :goto_4
    const p1, 0x7f11012b

    .line 52
    invoke-virtual {p0, p1}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object p1

    invoke-static {p0, p1, v4}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    .line 53
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/OpenRecommActivity;->finish()V

    return-void
.end method
